All Functions of Week 2

mean

{base}

Get mean of a vector

lm

{stats}

Fit linear models using least squares

summary

{base}

Obtain summary statistics or detailed regression output

library

{base}

Load an R package

filter

{dplyr}

Filter out rows of a data frame according to logical vector

sd

{stats}

Get standard deviation of a vector

nobs

{stats}

Return the number of observations in a model object

t.test

{stats}

Performs one and two sample t-tests on vectors of data.

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

setwd

{base}

Set Working Directory

The end!